/* 01 — Theme tokens and base layout */
:root {
  --header-height: 70px;
  --content-width: 1180px;
  --page-gutter: clamp(14px, 3vw, 24px);
  --section-space: clamp(40px, 4vw, 55px);
  --bg: #fff;
  --surface: #f5f9ff;
  --card: #fff;
  --text: #071536;
  --muted: #56647b;
  --line: #dbe7f5;
  --blue: #0878ff;
  --blue2: #6657ff;
  --button-blue: #0866d6;
  --shadow: 0 12px 32px #0b4c8d14;
  color-scheme: light;
}

html[data-theme=dark] {
  --bg: #07111f;
  --surface: #0a1828;
  --card: #0d1c2e;
  --text: #f5f8ff;
  --muted: #a7b5c9;
  --line: #20344d;
  --shadow: 0 16px 40px #0006;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.45 Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,sans-serif;
  transition: background-color .25s, color .25s;
}

.wrap {
  width: min(var(--content-width),calc(100% - 2 * var(--page-gutter)));
  margin: auto;
  min-width: 0;
  overflow-wrap: anywhere;
}

.site-header {
  height: var(--header-height);
  display: flex;
  align-items: center;
  padding: 0 max(var(--page-gutter),calc((100% - var(--content-width))/2));
  gap: 30px;
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb,var(--bg) 88%,transparent);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  margin-right: auto;
}

.brand>b {
  font-size: 25px;
  color: var(--blue);
}

.brand span {
  font-weight: 800;
}

.brand small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
}

.desktop-nav {
  display: flex;
  gap: 25px;
}

.desktop-nav a,.lang {
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
}

.nav-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme,.lang {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 999px;
  padding: 8px 13px;
  box-shadow: var(--shadow);
}

.theme {
  cursor: pointer;
  color: var(--text);
}

/* 02 — Hero */
.hero {
  --hero-overlay: linear-gradient(90deg,rgba(4,14,29,.88) 0%,rgba(4,14,29,.72) 40%,rgba(4,14,29,.62) 78%,rgba(4,14,29,.28) 100%);
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: clamp(580px,56.25vw,820px);
  padding: clamp(56px,7vw,112px) 0;
  background: #07111f;
  color: #fff;
}

/* Place the copy centre at the upper third of the first screen.
   min-height allows content to grow in short windows or with enlarged text. */
@media (min-width:721px) {
  .hero {
    min-height: calc(100vh - var(--header-height));
    min-height: calc(100svh - var(--header-height));
    padding-block: clamp(32px,6vh,72px);
    padding-block: clamp(32px,6svh,72px);
    padding-bottom: calc(clamp(32px,6vh,72px) + (100vh - var(--header-height))/3);
    padding-bottom: calc(clamp(32px,6svh,72px) + (100dvh - var(--header-height))/3);
  }
}

html[data-theme=dark] .hero {
  --hero-overlay: linear-gradient(90deg,rgba(4,14,29,.94) 0%,rgba(4,14,29,.80) 40%,rgba(4,14,29,.70) 78%,rgba(4,14,29,.38) 100%);
}

.hero-background {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--hero-overlay);
  pointer-events: none;
}

.hero-layout {
  position: relative;
  z-index: 2;
}

.hero-copy {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
  margin-bottom: 20px;
  color: var(--blue);
}

.hero .eyebrow {
  color: #b9dcff;
}

.hero h1 {
  font-size: clamp(1.875rem,4.1vw,3.5rem);
  line-height: 1.14;
  letter-spacing: -.035em;
  max-width: 100%;
  margin: 0 0 clamp(20px,2.5vw,28px);
  color: #fff;
}

.hero h1>span {
  display: block;
  text-wrap: balance;
}

.hero .actions {
  gap: 12px;
  margin: clamp(24px,3vw,30px) 0 24px;
}

.hero .btn {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}

.hero p {
  max-width: 590px;
  font-size: 18px;
  line-height: 1.7;
  color: #f0f4fb;
}

.hero .proof {
  color: #f0f4fb;
}

.hero .btn.secondary {
  color: #fff;
  background: rgba(4,14,29,.40);
  border-color: rgba(255,255,255,.7);
}

.hero .btn.secondary:hover,.hero .btn.secondary:focus-visible {
  color: #fff;
  background: rgba(4,14,29,.72);
  border-color: #fff;
}

.hero a:focus-visible {
  outline-color: #fff;
}

/* 03 — Shared components */
.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 30px 0 24px;
}

.btn {
  display: inline-block;
  padding: 13px 22px;
  border-radius: 9px;
  text-decoration: none;
  font-weight: 750;
  border: 1px solid var(--line);
}

.primary {
  color: #fff;
  background: linear-gradient(110deg,var(--button-blue),var(--blue2));
  border: 0;
}

.secondary {
  color: var(--text);
  border-color: var(--line);
  background: var(--card);
}

.proof {
  display: flex;
  gap: 10px 22px;
  flex-wrap: wrap;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

.section {
  padding: var(--section-space) 0;
}

.section-head {
  margin-bottom: 24px;
}

.section-head h2,.about h2,.why h2 {
  font-size: clamp(1.65rem,3vw,2.125rem);
  line-height: 1.2;
  overflow-wrap: anywhere;
  margin: 0 0 6px;
}

.section-head p,p {
  color: var(--muted);
  margin: 0;
}

.soft {
  background: var(--surface);
}

.grid {
  display: grid;
  gap: 16px;
}

.card,.project,.cta {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.card {
  padding: 22px;
}

.card .icon {
  font-size: 26px;
  color: var(--blue);
  font-weight: 900;
}

.card h3 {
  font-size: 17px;
  margin: 14px 0 8px;
}

.card p {
  font-size: 14px;
}

/* Project media and copy occupy separate rows in normal document flow. */
/* 04 — Projects, about and contact */
.projects {
  grid-template-columns: repeat(3,minmax(0,1fr));
  align-items: stretch;
}

.project {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.project-visual {
  flex-shrink: 0;
  aspect-ratio: 16/9;
  background: var(--surface);
}

.project-visual img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.project-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px;
  overflow-wrap: anywhere;
}

.project h3 {
  margin: 0 0 8px;
}

.tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 14px;
}

.tags span {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 12px;
}

.why {
  background: #081a31;
  color: #fff;
  padding: var(--section-space) 0;
}

.why h2 {
  color: #fff;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 28px;
}

.why-grid div {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.why-grid strong {
  font-size: 19px;
  color: #61b3ff;
}

.why-grid span {
  font-size: 14px;
  color: #c7d5e7;
}

.about {
  display: grid;
  grid-template-columns: minmax(0,1.35fr) minmax(0,1fr);
  gap: clamp(24px,3vw,40px) clamp(24px,4vw,56px);
  align-items: center;
}

.about h3 {
  font-size: 22px;
  margin: 4px 0 12px;
}

.about > div:first-child p + p {
  margin-top: 12px;
}

.portrait {
  width: min(100%,360px);
  justify-self: center;
}

.portrait img {
  width: 100%;
  height: auto;
  display: block;
}

.cta {
  min-width: 0;
  padding: 28px;
  overflow-wrap: anywhere;
}

.about > div {
  min-width: 0;
}

.cta .btn {
  max-width: 100%;
  white-space: normal;
}

.cta .btn {
  margin: 16px 0 10px;
}

.cta small {
  display: block;
  color: var(--muted);
}

.cta small a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  max-width: 100%;
  color: var(--section-accent);
  text-underline-offset: 3px;
}

footer {
  border-top: 1px solid var(--line);
  padding: 26px 0;
  color: var(--muted);
}

footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
}

@media(max-width:900px) {
  .projects {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .why-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media(max-width:1024px) {
  .about {
    grid-template-columns: 1fr;
  }
}

@media(max-width:560px) {
  footer .wrap {
    flex-direction: column;
    align-items: flex-start;
  }
  .brand small {
    display: none;
  }
  .why-grid {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 48px 0 56px;
  }
  .hero h1 {
    font-size: clamp(1.75rem,7.2vw,2.25rem);
    line-height: 1.18;
  }
  .hero p {
    font-size: 17px;
    line-height: 1.6;
  }
  .hero .eyebrow {
    margin-bottom: 16px;
    letter-spacing: .12em;
  }
  .hero .actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero .btn {
    text-align: center;
  }
  .proof {
    gap: 10px;
    flex-direction: column;
  }
}

@media(max-width:720px) {
  .hero {
    min-height: 640px;
    --hero-overlay: linear-gradient(90deg,rgba(4,14,29,.86),rgba(4,14,29,.62));
  }
  html[data-theme=dark] .hero {
    --hero-overlay: linear-gradient(90deg,rgba(4,14,29,.93),rgba(4,14,29,.72));
  }
  .hero-background {
    object-position: 62% center;
  }
  .hero-copy {
    max-width: 100%;
  }
}

/* Keep the intro compact on phones in landscape orientation. */
@media(max-width:920px) and (max-height:500px) and (orientation:landscape) {
  .hero {
    min-height: 0;
    padding-block: 32px;
  }
}

/* 05 — Bootstrap integration and navigation */
/* Bootstrap supplies the base and offcanvas; these rules retain the site theme. */
:root {
  --bs-body-color: var(--text);
  --bs-body-bg: var(--bg);
  --bs-border-color: var(--line);
  --bs-primary: #0878ff;
}

h1,h2,h3 {
  font-weight: 700;
  line-height: 1.2;
}

h3 {
  font-size: 1.17em;
}

.card {
  color: var(--text);
}

.btn {
  line-height: 1.45;
}

.btn.primary:hover,.btn.primary:focus-visible {
  color: #fff;
  background: var(--button-blue);
}

.btn.secondary:hover,.btn.secondary:focus-visible {
  color: var(--text);
  background: var(--surface);
  border-color: var(--blue);
}

.site-header {
  flex-wrap: nowrap;
}

.desktop-nav {
  white-space: nowrap;
}

.theme,.lang,.menu-toggle,.menu-close {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.menu-toggle,.menu-close {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--text);
  padding: 9px;
  cursor: pointer;
}

.menu-toggle {
  display: none;
}

.nav-tools {
  flex-shrink: 0;
}

.mobile-menu {
  --bs-offcanvas-width: min(360px,90vw);
  --bs-offcanvas-bg: var(--bg);
  --bs-offcanvas-color: var(--text);
  --bs-offcanvas-border-color: var(--line);
}

.mobile-menu .offcanvas-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  justify-content: space-between;
}

.mobile-menu .offcanvas-title {
  font-size: 22px;
  margin: 0;
}

.mobile-menu .offcanvas-body {
  padding: 20px 16px;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mobile-nav a {
  padding: 14px 16px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}

.mobile-nav a:hover,.mobile-nav a:focus-visible {
  background: var(--surface);
  color: var(--blue);
}

a:focus-visible,button:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}

main[id],section[id],#contact {
  scroll-margin-top: 90px;
}

@media(max-width:1199.98px) {
  .desktop-nav {
    display: none;
  }
  .menu-toggle {
    display: inline-flex;
  }
  .site-header {
    gap: 16px;
  }
}

@media(max-width:560px) {
  .site-header {
    gap: 8px;
  }
  .brand {
    gap: 7px;
  }
  .brand span {
    font-size: 14px;
  }
  .brand>b {
    font-size: 23px;
  }
  .nav-tools {
    gap: 6px;
  }
  .theme,.lang {
    padding: 8px;
  }
}

@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto;
  }
  body {
    transition: none;
  }
}

@media(max-width:380px) {
  .brand span {
    max-width: 85px;
    font-size: 13px;
  }
  .brand>b {
    font-size: 21px;
  }
  .brand {
    min-width: 0;
  }
}

@media(max-width:600px) {
  .projects {
    grid-template-columns: minmax(0,1fr);
  }
}

/* 06 — Process and services */
/* Collaboration and AI services share the existing data-theme mechanism. */
:root {
  --section-accent: #0866d6;
  --section-tint: #edf5ff;
  --section-track: #b7d3f4;
  --section-hover-border: #86b7f0;
  --section-card-shadow: 0 8px 28px rgba(20,62,110,.06);
  --section-hover-shadow: 0 14px 34px rgba(20,62,110,.12);
}

html[data-theme=dark] {
  --section-accent: #7cbbff;
  --section-tint: #132b46;
  --section-track: #355c84;
  --section-hover-border: #5184b8;
  --section-card-shadow: 0 8px 28px rgba(0,0,0,.18);
  --section-hover-shadow: 0 14px 34px rgba(0,0,0,.28);
}

.collaboration .section-head,.ai-services .section-head {
  max-width: 780px;
  margin-bottom: 32px;
}

.collaboration .section-head h2,.ai-services .section-head h2 {
  font-size: clamp(1.65rem,3vw,2.125rem);
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.collaboration .section-head p,.ai-services .section-head p {
  line-height: 1.65;
}

.process-grid,.services-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-step {
  position: relative;
  min-width: 0;
  isolation: isolate;
}

.process-step:not(:last-child)::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 49px;
  left: 100%;
  width: 24px;
  height: 2px;
  background: var(--section-track);
}

.process-card,.service-card {
  height: 100%;
  min-width: 0;
  padding: 24px;
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--section-card-shadow);
  overflow-wrap: anywhere;
}

.process-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  color: var(--section-accent);
}

.process-number {
  display: grid;
  place-items: center;
  min-width: 48px;
  height: 48px;
  border: 1px solid var(--section-track);
  border-radius: 14px;
  background: var(--section-tint);
  font-size: 1.25rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.04em;
}

.section-icon {
  display: block;
  flex-shrink: 0;
}

.process-card h3,.service-card h3 {
  font-size: 1.125rem;
  line-height: 1.35;
  margin: 0 0 12px;
  letter-spacing: -.015em;
  color: var(--text);
}

.process-card p,.service-card p {
  font-size: .9375rem;
  line-height: 1.7;
  color: var(--muted);
}

.services-grid {
  grid-template-columns: repeat(3,minmax(0,1fr));
}

.service-card {
  padding: 28px;
  border-top: 3px solid var(--section-track);
  background: linear-gradient(135deg,var(--section-tint),var(--card) 65%);
}

.service-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 22px;
  border: 1px solid var(--section-track);
  border-radius: 16px;
  background: var(--section-tint);
  color: var(--section-accent);
}

@media(hover:hover) and (pointer:fine) {
  .service-card:hover {
    border-color: var(--section-hover-border);
    box-shadow: var(--section-hover-shadow);
  }
}

@media(min-width:601px) and (max-width:1024px) {
  .process-grid,.services-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .process-step:nth-child(2)::after {
    top: 100%;
    left: 50%;
    width: 2px;
    height: 24px;
  }
  /* Continue from step 02 to 03, then back to 04 along the second row. */
  .process-step:nth-child(3) {
    grid-column: 2;
    grid-row: 2;
  }
  .process-step:nth-child(4) {
    grid-column: 1;
    grid-row: 2;
  }
  .process-step:nth-child(3)::after {
    left: auto;
    right: 100%;
  }
}

@media(max-width:600px) {
  .process-grid,.services-grid {
    grid-template-columns: minmax(0,1fr);
    gap: 20px;
  }
  .process-grid {
    padding-left: 20px;
    border-left: 2px solid var(--section-track);
    margin-left: 7px;
  }
  .process-step::before {
    content: "";
    position: absolute;
    left: -28px;
    top: 36px;
    width: 12px;
    height: 12px;
    border: 3px solid var(--bg);
    border-radius: 50%;
    background: var(--section-accent);
    box-shadow: 0 0 0 1px var(--section-track);
  }
  .process-step:not(:last-child)::after {
    display: none;
  }
  .process-card,.service-card {
    padding: 20px;
  }
  .process-card-head {
    margin-bottom: 20px;
  }
  .collaboration .section-head,.ai-services .section-head {
    margin-bottom: 24px;
  }
}

/* 07 — Language selection: native disclosure works without JavaScript. */
.language-switcher {
  position: relative;
}

.language-switcher summary {
  cursor: pointer;
  list-style: none;
}

.language-switcher summary::-webkit-details-marker {
  display: none;
}

.language-switcher summary::after {
  content: "⌄";
  margin-left: 5px;
}

.language-switcher summary:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}

.language-options {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 160px;
  padding: 6px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.language-options a {
  display: block;
  padding: 10px 12px;
  border-radius: 7px;
  color: var(--text);
  text-decoration: none;
}

.language-options a:hover,
.language-options a:focus-visible,
.language-options a[aria-current="page"] {
  background: var(--surface);
  color: var(--section-accent);
}

@media (max-width: 380px) {
  .language-switcher .lang {
    padding-inline: 6px;
  }
}

/* Contact form: server-rendered, usable without JavaScript. */
.about > .contact-section { grid-column: 1 / -1; }
.contact-form { margin-top: 24px; }
.contact-form fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.contact-field { min-width: 0; }
.contact-field label { display: block; font-weight: 600; margin-bottom: 8px; }
.contact-field input, .contact-field select, .contact-field textarea {
  display: block; width: 100%; min-width: 0; max-width: 100%; min-height: 48px;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); color: var(--text); font: inherit;
}
.contact-field textarea { resize: vertical; }
.contact-field :is(input, select, textarea):focus-visible { outline: 3px solid var(--section-accent); outline-offset: 2px; }
.contact-field [aria-invalid="true"] { border: 2px solid #b42318; }
html[data-theme=dark] .contact-field [aria-invalid="true"] { border-color: #ff9b93; }
.contact-wide { grid-column: 1 / -1; }
.contact-hint, .contact-privacy { color: var(--muted); font-size: 14px; line-height: 1.6; }
.contact-privacy { margin: 20px 0 0; }
.contact-notice { padding: 16px; border: 1px solid var(--section-accent); border-radius: 10px; background: var(--surface); }
.contact-honeypot { display: none; }
.contact-direct { display: flex; flex-wrap: wrap; gap: 4px 24px; border-top: 1px solid var(--line); margin-top: 16px; padding-top: 12px; }
.contact-form fieldset:disabled { opacity: .65; }
@media (max-width: 600px) {
  .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .contact-section { padding: 20px; }
  .contact-form .btn { width: 100%; }
}

/* Progressive enhancement: details without JS, native modal with JS. */
.contact-fallback > summary { list-style: none; cursor: pointer; }
.contact-fallback > summary::-webkit-details-marker { display: none; }
.contact-dialog {
  --section-accent: var(--button-blue);
  width: min(680px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card);
  color: var(--text);
  box-shadow: 0 24px 80px #0005;
  overflow: auto;
  overscroll-behavior: contain;
  overflow-wrap: anywhere;
}
html[data-theme=dark] .contact-dialog { --section-accent: #72b1ff; }
.contact-dialog::backdrop { background: #031126aa; backdrop-filter: blur(5px); }
html.contact-dialog-open { overflow: hidden; }
.contact-dialog-header { display: flex; align-items: flex-start; gap: 16px; }
.contact-dialog-header h2 { flex: 1; margin: 0; font-size: clamp(22px, 3vw, 28px); line-height: 1.25; }
.contact-close {
  flex: 0 0 44px; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line);
  border-radius: 12px; background: var(--surface); color: var(--text); font-size: 28px; line-height: 1; cursor: pointer;
}
.contact-close[hidden] { display: none; }
.contact-close:focus-visible, .contact-fallback > summary:focus-visible { outline: 3px solid var(--section-accent); outline-offset: 3px; }
.contact-dialog .contact-form { margin-top: 16px; }
.contact-dialog .contact-grid { gap: 14px 20px; }
.contact-dialog .contact-form .btn { margin-top: 20px; }
.contact-dialog .contact-notice { margin-top: 16px; }
@media (max-width: 600px) {
  .contact-dialog { width: calc(100% - 20px); max-height: calc(100dvh - 20px); padding: 20px; border-radius: 16px; }
}
